//
//  NumberInt.h
//  etionMisc
//
//  Created by wjxfhxy on 5/10/13.
//  Copyright (c) 2013 GuangZhouXuanWu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XMSNumber : NSObject <NSCoding, NSCopying>

- (NSNumber *)toNSNumber;

- (NSString *)toNSString;

- (NSComparisonResult)compare:(id)otherNumber;

@end

@interface XMSNumberInt : XMSNumber

@property(nonatomic, assign) NSInteger intValue;

+ (XMSNumberInt *)numberIntWithIntValue:(NSInteger)nInt;

@end

@interface XMSNumberLongLong : XMSNumber

@property(nonatomic, assign) long long longLongValue;

+ (XMSNumberLongLong *)numberLongLongWithLongLongValue:(long long)nInt;

@end

@interface XMSNumberULongLong : XMSNumber

@property(nonatomic, assign) unsigned long long uLongLongValue;

+ (XMSNumberULongLong *)numberULongLongWithULongLongValue:(unsigned long long)nInt;

@end

@interface XMSNumberFloat : XMSNumber

@property(nonatomic, assign) float floatValue;

+ (XMSNumberFloat *)numberFloatWithFloatValue:(float)nFloat;

@end

@interface XMSNumberDouble : XMSNumber

@property(nonatomic, assign) double doubleValue;

+ (XMSNumberDouble *)numberDoubleWithDoubleValue:(double)nDouble;

@end